function allReadyEdit() {
    if (otype == 'add' || otype == 'copy') {
        NG.setValue('lpq', NG.callServer('获取理赔期', {phid: 1}, 'lpq'));
    }
    NG._getGrid().getStore().on('update', function (p1, p2, p3, p4) {
        if (p3 == 'edit' && p4[0] == 'sfzh') {
            var res = NG.callServer('获取员工信息', {cardno: p2.data.sfzh});
            if (res.record.length > 0) {
                p2.data.cno = res.record[0].cno;
                p2.data.empid = res.record[0].phid;
                p2.data.empid_name = res.record[0].cname;
                NG._getGrid().getView().refresh();
            }
        }
    })
    NG.setSumToMaster('hjje','amt');
}
